layui.config({
    base : "js/"
}).use(['form','layer','jquery'],function() {
    var form = layui.form,
        layer = parent.layer === undefined ? layui.layer : parent.layer,
        $ = layui.jquery;
    var url = ["<?= yii\helpers\Url::to(['/tools/ico']); ?>",'yes'];

    console.log(url);
   /* if (parent.layer.index > 0){
        setTimeout(function () {
            layer.closeAll();

            parent.location.href='<?=url?>';
        },1000)
    }else{
        location.reload();
    }*/
       /* setTimeout(function () {
            parent.location.reload();
        },1000);*/
       /* if (parent.layer.index > 0){
            parent.location.reload();
        }*/
});